package com.ding.custommanagersys.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ding.custommanagersys.entity.Email;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author ding
 * @since 2023-04-21
 */
@Mapper
public interface EmailMapper extends BaseMapper<Email> {

    List<Email> getAllEmail(Page<Email> page,
                     @Param("userId") String userId);


    Integer deleteEmail(@Param("ids") List<String> ids,
                        @Param("userId") String userId);

}
